<?php
/**
 * 系统后台主文件(默认文件)
 * @author chenhao
 * @copyright 成都四方客信息技术有限公司
 * @link http://www.sifangke.cn/
 * @since Thu Nov 19 14:27:16 CST 2009
 */
 
define('IN_SYS',true);
require(dirname(__FILE__) . '/includes/init.php');
require(dirname(__FILE__) . '/includes/acl.php');

$smarty->assign('lang',$_LANG);
/*------------------------------------------------------ */
//-- 框架
/*------------------------------------------------------ */
if ($_REQUEST['act'] == '') {
	$smarty->display('index.html');
}
/*------------------------------------------------------ */
//-- 顶部
/*------------------------------------------------------ */
elseif ($_REQUEST['act'] == 'top') {
	$smarty->display('top.html');
}
/*------------------------------------------------------ */
//-- 左侧菜单
/*------------------------------------------------------ */
elseif ($_REQUEST['menu'] == 'menu') {
	$smarty->display('menu.html');
}
/*------------------------------------------------------ */
//-- 清除缓存
/*------------------------------------------------------ */
elseif ($_REQUEST['act'] == 'clear_cache'){
    $smarty->clear_all_cache();
    sys_msg('成功清楚缓存文件');
}
/*------------------------------------------------------ */
//-- 主窗口，起始页
/*------------------------------------------------------ */
elseif ($_REQUEST['act'] == 'main') {
	$smarty->display('start.html');
}